<center><img src="visitante.png"/></center><br /><br />
<form action="cadastro_visitantes.php" method="POST" id="cadastro_visitantes">
    <fieldset style="line-height: 230%;">
        <b>RG:</b>
        <input id="rg" type="text" name="rg" size="10" onkeypress='return somentenumero(event)'/> 
        <input type="button" value="Entrada por RG" id="busca_rg" onclick="ExecRG()" /> <br />
        <b>Cracha:</b>
        <input id="cracha" type="text" name="cracha" size="10" onkeypress='return somentenumero(event)' />
        <input type="button" value="Saída por Cracha" id="busca_cracha" onclick="ExecCracha()"/> <br />
        <b>Nome:</b>
        <input type="text" name="nome" id="nome" size="50" style="text-transform:uppercase;" readonly="true" /> <br />
        <b>Sobrenome:</b>
        <input type="text" name="sobrenome" id="sobrenome"  size="50" style="text-transform:uppercase;" readonly="true"/> <br />
        <b>Empresa:</b>
        <input type="text" name="empresa" id="empresa"  size="50" style="text-transform:uppercase;" readonly="true"/> <br />
        <div name="div_foto" id="div_foto" style="visibility:hidden">
        </div>
        <b>Permissao:</b>
        <input type="text" name="permissao" id="permissao" size="50" style="text-transform:uppercase;" readonly="true"  /> <br />
        <b>Setor:</b>
        <select name="setor" id="setor"  style="min-width: 150px">
            <?php
            $sql = "SELECT setor FROM setor WHERE bloqueado = 0 ORDER BY setor";
            $query = mysql_query($sql);
            echo "<option value = '*' > Selecione... </option>";
            while ($dados = mysql_fetch_array($query)) {
                echo "<option id=" . $dados['setor'] . " value = " . $dados['setor'] . ">" . $dados['setor'] . "</option>";
            }
            ?>        
        </select>
        <br />
        <b>Observação:</b>
        <input type="text" name="obs" id="obs"  size="50" style="text-transform:uppercase;" readonly="true" /> <br />

        <input type="submit" value="Enviar" />
        <input type="button" value="Limpar" onclick="javascript:window.history.go(0)"/>

    </fieldset>
</form>
<script>
    document.forms['cadastro_visitantes'].reset();
</script>




